package BusinessLogic;

public class LibraryInController implements ILibraryInController{

	private LibraryInModel lim = new LibraryInModel();
	
	public boolean addItemControl(int id,String name,double price,double specialPrice,String specialStart,String specialEnd,double num,String produceDate,String scrapDate,double costPrice,String inLibraryDate){
		return lim.addItem(id,name,price,specialPrice,specialStart,specialEnd,num,produceDate,scrapDate,costPrice,inLibraryDate);
	}
	
	public boolean removeItemControl(int GoodID){
		return lim.removeItem(GoodID);
	}
	
	public boolean libraryInControl(){
		return lim.libraryIn();
	}
	
	public String getInLibraryDateByIDControl(int ID){
		return lim.getInLibraryDateByID(ID);
	}
	
	public LibraryItem showInLibraryInformationByIDControl(int ID){
		return lim.showInLibraryInformationByID(ID);
	}
	
	public String getGoodDescriptionByIDControl(int ID){
		return lim.getGoodDescriptionByID(ID);
	}
	
	public double getGoodPriceByIDControl(int ID){
		return lim.getGoodPriceByID(ID);
	}
	
	public double getGoodSpecialPriceByIDControl(int ID){
		return lim.getGoodSpecialPriceByID(ID);
	}
	
	public String getGoodSpecialTimeStartByIDControl(int ID){
		return lim.getGoodSpecialTimeStartByID(ID);
	}
	
	public String getGoodSpecialTimeEndByIDControl(int ID){
		return lim.getGoodSpecialTimeEndByID(ID);
	}
	
	public double getGoodNumberByIDControl(int ID){
		return lim.getGoodNumberByID(ID);
	}
	
	public double getGoodCostPriceByIDControl(int ID){
		return lim.getGoodCostPriceByID(ID);
	}
	
	public String getProduceDateByIDControl(int ID){
		return lim.getProduceDateByID(ID);
	}
	public String getScrapDateByIDControl(int ID){
		return lim.getScrapDateByID(ID);
	}
}
